
require("./07 env")
require("./06 source")


// 测试1
/*params = {
    "appid": "search-pc-java",
    "functionId": "pc_search_s_new",
    "client": "pc",
    "clientVersion": "1.0.0",
    "t": 1725762026813,
    "body": "76854efc22a824b6eaeaa23028e24c0f99ef7d804d15ed6b7bdb64b46be4e22f"
}

window.PSign.sign(params).then(function (res){
    console.log(":::",res.h5st)
    process.exit()
})*/

// 测试2:让py的subprocess调用主js文件

// let jsonData = __process.argv[2]
let jsonData = '{"appid": "search-pc-java", "functionId": "pc_search_s_new", "client": "pc", "clientVersion": "1.0.0", "t": 1731377497259, "body": "b77bd071cd592616b4ec441e47cc4732d3bfc558a4ad26b771d74af2cdb06d1f"}'
params = JSON.parse(jsonData)
window.PSign.sign(params).then(function (res){
    console.log(":::"+res.h5st+":::")
    __process.exit()
})


